package com.wyt.design.designmodel.loader;

/**
 * @author weiyatong
 * @version 1.0
 * @date 2021/7/8 上午10:42
 * @describe
 */
public class main {
    public static void main(String[] args) {
        Beverage darkRoast =  new DarkRoast();
        darkRoast = new Milk(darkRoast);
        darkRoast = new Mocha(darkRoast);
        System.out.println(darkRoast.cost());
    }
}
